{include file="header.html"}

<div class="main fn-clear">
	<div class="my-account">
    	<div class="user-info fn-left">
        	<dl>
            	<dt class="fn-left"><img src="{$site_url}/statics/images/nopic.png"></dt>
                <dd class="fn-left">
                	<p class="user-name">{$noon}，{$user_info.user_name}</p>
                    <p>{$user_info.email}</p>
                    <p class="user-secure">安全等级：
                        {if ($user_info.PhoneChecked eq 1) and ($user_info.certificated eq 2)}<a class="user-securelevel-high"><i></i>高</a>
                        {elseif ($user_info.PhoneChecked neq 1) and ($user_info.certificated neq 2)}<a class="user-securelevel-low"><i></i>低</a>
                        {elseif (($user_info.PhoneChecked eq 1) and ($user_info.certificated neq 2)) or (($user_info.PhoneChecked neq 1) and ($user_info.certificated eq 2))}<a class="user-securelevel-medium"><i></i>低</a>

                        {/if}

                        <!--判断a：低class='user-securelevel-low'中class='user-securelevel-medium'--></p>
                </dd>
            </dl>
            <ul>
            	<li><!--判断认证--><a class="user-certify" href="javascript:;">{if $user_info.certificated eq 2}已{else}未{/if}认证</a><a class="user-mobile" href="javascript:;">{if $user_info.PhoneChecked eq 1}已{else}未{/if}绑定</a></li>
            </ul>
        </div>
        <div class="account-info fn-left">
        	<h1>账户余额</h1>
            <h2><em>{$user_info.vcount}</em>元<!--&nbsp;&nbsp;冻结金额：{$frozen}--></h2>
            <p><a class="button-morange" href="index.php?c=index&a=recharge" target="_blank">充值</a><a class="button-mwhite" href="index.php?c=index&a=cashout">提现</a></p>
        </div>
        <div class="user-help fn-left">
        	<h1>使用帮助</h1>
            <ul>
                	<li><a href="http://www.ppsc.com.cn/article-24-42.html" target="_blank">什么是博货宝？</a></li>
                	<li><a href="http://www.ppsc.com.cn/article-24-42.html#recharge" target="_blank">如何充值？</a></li>
                	<li><a href="http://www.ppsc.com.cn/article-24-42.html#cashout" target="_blank">如何提现？</a></li>
            </ul>
        </div>
    </div>
    <div class="list-box">
    	<table>
        	<thead>
            	<tr><td colspan="6">最近交易列表</td></tr>
            </thead>
            <tbody>
            	<tr class="title">
					<td>订单号</td>
                	<td class="time">日期</td>
                	<td class="name">交易商品</td>
                	<td class="amount">收支</td>
                	<td class="status">状态</td>
                    
                	<td class="from">商户</td>
                    
                </tr>
                {foreach from=$res item=re}
                <tr>
					 <td>{$re.order_sn_main}</td>
                    <td class="time">{$re.add_time}</td>
                    <td class="name"><a href="http://www.ppsc.com.cn/product-{$re.goods_id}.html" target="_blank">{$re.goods_name}</a></td>
                    
                    <td class="amount">{if ($re.b_type eq 0) and ($re.pay_status neq 0)}<span class="pay-in">+{$re.order_amount}</span>{elseif ($re.b_type eq 1) and ($re.pay_status neq 0)}<span class="pay-out">-{$re.order_amount}</span>{else}<span class="pay-un">-{$re.order_amount}</span>{/if}</td>
                    <td class="status">{if $re.pay_status eq 0}未支付{else}{$conf[$re.status].ch_name}{/if}</td>
                   
                    <td class="from"><a href="http://www.ppsc.com.cn/store-{$re.seller_id}-39.html" target="_blank">{$re.seller_name}</a></td>
                    
                </tr>
                {/foreach}
            </tbody>
            <tfoot>
            	<tr><td colspan="6"><a href="index.php?c=index&a=trade_record" target="_self">>>查看所有交易记录</a></td></tr>
            </tfoot>
        </table>
    </div>
</div>

{include file="footer.html"}